<?php
/**
 * testClass
 * User: lisgroup
 * Date: 2017/11/8
 * Time: 10:13
 */

class testClass
{
    private $response;

    public function verify()
    {
        $this->response = array('error_code' => 0, 'reason' => '成功', 'data' => array(
            'bankcard' => '123',
            'realname' => '234',
            'idcard' => '111111',
            'res' => 1,
            'message' => '认证信息匹配'
        ));

        $this->response['guid'] = 'fjslfjdlskflksdj';
        $msg = '这里的是记录';
        $this->response['data']['message'] .= "({$msg})";

        (empty($this->response) || !is_array($this->response)) && $this->response = array('error_code' => 2, 'reason' => '参数有误');
    }

    public function getParam()
    {
        return $this->response;
    }

}

$test = new testClass();

$test->verify();

var_dump($test->getParam());

